Manipulating Collections using loops